<?php 
if (!defined("LEVEL") || LEVEL < 30 || !defined("OK")) { header('location: ../'); }
?>
		<h2>Vartotoju nustatymai</h2>
		<p>
		<?
		$sql = mysql_query1("SELECT id, INET_NTOA(ip) AS ip, reg_data, gim_data, login_data, nick, vardas, pavarde, email FROM users WHERE levelis=30");
		while($row = mysql_fetch_assoc($sql)) {
			$adminai .= "<div class=\"sarasas\"><a href=\"?id,47;m,".$row['id']."\" title=\"header=[".$row['nick']."] body=[
			<br/>
			Užsiregistravo: <b>".$row['reg_data']."</b><br/>
			Prisijungė: <b>".kada($row['login_data'])."</b><br/>
			Vardas pav.: <b>".$row['vardas']." ".$row['pavarde']."</b><br/>
			Amžius: <b>".amzius($row['gim_data'])."</b><br/>
			Email: <b>".$row['email']."</b><br/>
			IP: <b>".$row['ip']."</b><br/><br/>
			] cssbody=[sarasas] cssheader=[title] fade=[on]\" title=\"2007-01-14 19:36:24\">".$row['nick']."</a> <a href=\"?id,45;n,1;u,".$row['nick']."\"><img src=\"images/pm/mail.png\" alt=\"pm\" border=\"0\" /></a> <a href='?id,46;a,6;d,102'>[d]</a> <a href='?id,46;a,6;r,102'>[r]</a> <a href='?id,46;a,6;b,".$row['ip']."'>[b]</a>
			</div>";
		}
		$sql = mysql_query1("SELECT id, INET_NTOA(ip) AS ip, reg_data, gim_data, login_data, nick, vardas, pavarde, email FROM users WHERE levelis>20 AND levelis<30");
		while($row = mysql_fetch_assoc($sql)) {
			$moderatoriai .= "<div class=\"sarasas\"><a href=\"?id,47;m,".$row['id']."\" title=\"header=[".$row['nick']."] body=[
			<br/>
			Užsiregistravo: <b>".$row['reg_data']."</b><br/>
			Prisijungė: <b>".kada($row['login_data'])."</b><br/>
			Vardas pav.: <b>".$row['vardas']." ".$row['pavarde']."</b><br/>
			Amžius: <b>".amzius($row['gim_data'])."</b><br/>
			Email: <b>".$row['email']."</b><br/>
			IP: <b>".$row['ip']."</b><br/><br/>
			] cssbody=[sarasas] cssheader=[title] fade=[on]\" title=\"2007-01-14 19:36:24\">".$row['nick']."</a> <a href=\"?id,45;n,1;u,".$row['nick']."\"><img src=\"images/pm/mail.png\" alt=\"pm\" border=\"0\" /></a> <a href='?id,46;a,6;d,102'>[d]</a> <a href='?id,46;a,6;r,102'>[r]</a> <a href='?id,46;a,6;b,".$row['ip']."'>[b]</a>
			</div>";
		}
		$sql = mysql_query1("SELECT id, INET_NTOA(ip) AS ip, reg_data, gim_data, login_data, nick, vardas, pavarde, email FROM users WHERE levelis<20");
		while($row = mysql_fetch_assoc($sql)) {
			//$useriai .= $row['id']." <a href=\"?id,47;m,3\" title=\"\">".$row['nick']."</a> ".$row['vardas']." ".$row['pavarde']." ".$row['email']."<br />";
			$useriai .= "<div class=\"sarasas\"><a href=\"?id,47;m,".$row['id']."\" title=\"header=[".$row['nick']."] body=[
			<br/>
			Užsiregistravo: <b>".$row['reg_data']."</b><br/>
			Prisijungė: <b>".kada($row['login_data'])."</b><br/>
			Vardas pav.: <b>".$row['vardas']." ".$row['pavarde']."</b><br/>
			Amžius: <b>".amzius($row['gim_data'])."</b><br/>
			Email: <b>".$row['email']."</b><br/>
			IP: <b>".$row['ip']."</b><br/><br/>
			] cssbody=[sarasas] cssheader=[title] fade=[on]\" title=\"2007-01-14 19:36:24\">".$row['nick']."</a> <a href=\"?id,45;n,1;u,".$row['nick']."\"><img src=\"images/pm/mail.png\" alt=\"pm\" border=\"0\" /></a> <a href='?id,46;a,6;d,102'>[d]</a> <a href='?id,46;a,6;r,102'>[r]</a> <a href='?id,46;a,6;b,".$row['ip']."'>[b]</a>
			</div>";
		}
		//<a href="?id,47;m,61" title="Užsiregistravo: 2007-01-05 20:34:49">rokule</a> <a href="?id,45;n,1;u,rokule"><img src="images/pm/mail.png" alt="pm" border="0"></a> <a href="?id,49;d,86">[d]</a> <a href="?id,49;r,86">[r]</a> <a href="?id,49;b,61">[b]</a>
		lentele("Administratoriai",$adminai);
		lentele("Moderatoriai",$moderatoriai);
		lentele("Vartotojai",$useriai);
		?>
		</p>
	</div>
</div>